﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AlgoritmTeorija
{
    class TimeHelper
    {
        private DateTime start, finish;

        public void StartTimer()
        {
            start = DateTime.Now;
        }

        public void StopTimer()
        {
            finish = DateTime.Now;
        }

        public DateTime GetStartTime()
        {
            return start;
        }

        public DateTime GetEndTime()
        {
            return finish;
        }

        public TimeSpan GetDuration()
        {
            return finish - start;
        }

    }
}
